import {getStore} from './storage.js'
export let checkToken = () => {
	return new Promise(async (resolve) => {
		
		let getToken=await getStore('token')
		if(getToken.code==400){
			// 跳转到登录页
			console.log('前往登录页')
			wx.redirectTo({
			  url: '/pages/login/login'
			})
			return
		}

	})
}



